package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_OnlinePuton", catalog="Id")
public class TccOnlinePuton extends BaseEntity<TccOnlinePuton> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="AssembleBid", nameJava="assembleBid", typeDataBase="varchar")
	private String assembleBid;
	@YsField(nameDataBase="SpBm", nameJava="spBm", typeDataBase="varchar")
	private String spBm;
	@YsField(nameDataBase="StockControlId", nameJava="stockControlId", typeDataBase="bigint")
	private Long stockControlId;
	@YsField(nameDataBase="PutonNum", nameJava="putonNum", typeDataBase="decimal")
	private BigDecimal putonNum;
	@YsField(nameDataBase="PutonStatus", nameJava="putonStatus", typeDataBase="tinyint")
	private Integer putonStatus;
	@YsField(nameDataBase="ChwSaveType", nameJava="chwSaveType", typeDataBase="tinyint")
	private Integer chwSaveType;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccOnlinePuton setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TccOnlinePuton setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public String getAssembleBid() {
		return assembleBid;
	}
	public TccOnlinePuton setAssembleBid(String assembleBid) {
		this.assembleBid = assembleBid;
		return this;
	}
	public String getSpBm() {
		return spBm;
	}
	public TccOnlinePuton setSpBm(String spBm) {
		this.spBm = spBm;
		return this;
	}
	public Long getStockControlId() {
		return stockControlId;
	}
	public TccOnlinePuton setStockControlId(Long stockControlId) {
		this.stockControlId = stockControlId;
		return this;
	}
	public BigDecimal getPutonNum() {
		return putonNum;
	}
	public TccOnlinePuton setPutonNum(BigDecimal putonNum) {
		this.putonNum = putonNum;
		return this;
	}
	public Integer getPutonStatus() {
		return putonStatus;
	}
	public TccOnlinePuton setPutonStatus(Integer putonStatus) {
		this.putonStatus = putonStatus;
		return this;
	}
	public Integer getChwSaveType() {
		return chwSaveType;
	}
	public TccOnlinePuton setChwSaveType(Integer chwSaveType) {
		this.chwSaveType = chwSaveType;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccOnlinePuton setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccOnlinePuton setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccOnlinePuton setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccOnlinePuton tccOnlinePuton(
		String bid,
		String assembleBid,
		String spBm,
		Long stockControlId,
		BigDecimal putonNum,
		Integer putonStatus,
		Integer chwSaveType,
		Integer status
			) {
		TccOnlinePuton entity = new TccOnlinePuton();
		entity.setBid(bid);
		entity.setAssembleBid(assembleBid);
		entity.setSpBm(spBm);
		entity.setStockControlId(stockControlId);
		entity.setPutonNum(putonNum);
		entity.setPutonStatus(putonStatus);
		entity.setChwSaveType(chwSaveType);
		entity.setStatus(status);
		return entity;
	}
}